/**
 * Project: report2imolike
 * File name: transformer.cpp
 * Description:  This class provides preview of data prior to vaving them
 *
 * @author Vladimir Burgić, Petnica Meteor Group http://meteori.rs, Copyright (C) 2011.
 * @version 0.2
 *
 * @see The GNU Public License 3 (GPL)
 */
/*
 *   This file is part of report2imolike project.
 *
 *   Report2imolike is free software: you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation, either version 3 of the License, or
 *   (at your option) any later version.
 *
 *   Report2imolike is distributed in the hope that it will be useful,
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *   GNU General Public License for more details.
 *
 *   You should have received a copy of the GNU General Public License
 *   along with report2imolike.  If not, see <http://www.gnu.org/licenses/>.
 */

#include "preview.h"

Preview::Preview(QWidget *parent) :
    QDialog(parent)
{
    ui.setupUi(this);
    connect (ui.saveButton, SIGNAL(clicked()), this, SIGNAL(saveFiles()));
}

void Preview::showMagnPreview(QStringList magnList)
{
    ui.magPreviewListWidget->clear();
    ui.magPreviewListWidget->addItems(magnList);
}

void Preview::showRatePreview(QStringList rateList)
{
    ui.ratePreviewListWidget->clear();
    ui.ratePreviewListWidget->addItems(rateList);
}

void Preview::saveButtonEnabled(bool enabled)
{
    ui.saveButton->setEnabled(enabled);
}
